package net.neptech.model.sys;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import jakarta.persistence.*;
import lombok.Data;
import net.neptech.utils.SnowflakeIdGenerator;
import org.hibernate.annotations.GenericGenerator;

import java.io.Serial;
import java.io.Serializable;

/**
 * @Author: liyuxiang
 * @Date: 2025/8/16 22:12
 * @Description: 员工岗位关联实体类
 */
@Entity
@Table(name = "sys_staff_position", schema = "med_sys_db")
@TableName("sys_staff_position")
@Data
public class StaffPosition implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;
    @Id
    @GenericGenerator(name = "snowflake", type = SnowflakeIdGenerator.class)
    @GeneratedValue(generator = "snowflake")
    @Column(name = "id", nullable = false)
    @TableId
    private Long id;
    @Column(name = "staff_id")
    private Long staffId;
    @Column(name = "position_id")
    private Long positionId;
}
